﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using IService.DataDLL;
using IService.Model;
using IService.Data;

namespace IService.Business.Manager
{
    public class ActivityOpinionManager
    {
        public DataTable GetActivityOpinionListAll()
        {
            return DTVData.ActivityOpinionManager.GetActivityOpinionListAll(typeof(ActivityOpinion));
        }

        public DataTable GetLatestActivityOpinionList(int ActivityOpinionnum)
        {
            return DTVData.ActivityOpinionManager.GetLatestActivityOpinionList(typeof(ActivityOpinion), ActivityOpinionnum);
        }

        public DataTable GetActivityOpinionListPagin(PagingEntity pe)
        {
            return DTVData.ActivityOpinionManager.GetActivityOpinionListPagin(typeof(ActivityOpinion), pe);
        }

        public ActivityOpinion GetActivityOpinionById(int Id)
        {
            ActivityOpinion ActivityOpinion = new ActivityOpinion();
            ActivityOpinion.ID = Id;
            return DTVData.ActivityOpinionManager.GetActivityOpinionById(ActivityOpinion);
        }

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="ActivityOpinion"></param>
        /// <returns></returns>
        public bool InsertActivityOpinion(ActivityOpinion ActivityOpinion)
        {
            return DTVData.ActivityOpinionManager.InsertActivityOpinion(ActivityOpinion);
        }

        public bool UpdateActivityOpinion(ActivityOpinion ActivityOpinion)
        {
            return DTVData.ActivityOpinionManager.UpdateActivityOpinion(ActivityOpinion);
        }

        public bool DeleteActivityOpinion(int Id)
        {
            ActivityOpinion ActivityOpinion = new ActivityOpinion();
            ActivityOpinion.ID = Id;
            return DTVData.ActivityOpinionManager.DeleteActivityOpinion(ActivityOpinion);
        }

        public bool DeleteActivityOpinionByIds(string Ids)
        {
            return DTVData.ActivityOpinionManager.DeleteActivityOpinionByIds(typeof(ActivityOpinion), Ids);
        }

    }
}
